#!/bin/bash

rm -rf build
cp -r src build
cd build

# Scrollback
patch -p1 -i ../patches/st-scrollback-20200419-72e3f6c.diff
patch -p1 -i ../patches/st-scrollback-mouse-20191024-a2c479c.diff
patch -p1 -i ../patches/st-scrollback-mouse-altscreen-20200416-5703aa0.diff

# New terminal window (Ctrl+Shift+Enter)
patch -p1 -i ../patches/st-newterm-0.8.4.diff

# Config
patch -p1 -i ../patches/config.patch
